/*
 * @Author: 张伟 10187258+zhang_wei_self@user.noreply.gitee.com
 * @Date: 2022-08-28 22:33:42
 * @LastEditors: 张伟 10187258+zhang_wei_self@user.noreply.gitee.com
 * @contactDetails: 1405298045@qq.com
 * @LastEditTime: 2022-09-26 16:51:53
 * @FilePath: /ll-fe-mp-dyfx/src/api/tandian.js
 */
import { GET, POST } from '@/service';

/**
 * 产品详情查询
 */
export const getIndexListBanner = (params) => {
	const url = '/api/tdProduct/detail';

	return GET(url, params);
};

/**
 *
 */
export const getChannelInfo = (params) => {
	const url = '/api/userChannel/channelList';

	return GET(url, params);
};

export const saveSeekApply = (params) => {
	const url = '/api/tdSeekApply/saveSeekApply';

	return POST(url, params);
};

/**
 * 申请探店前的必要校验
 * @param {*} params
 * @returns
 */
export const checkProduct = (params) => {
	const url = '/api/tdSeekApply/checkProduct';

	return GET(url, params);
};

/**
 * 申请探店前的必要校验
 * @param {*} params
 * @returns
 */
export const getCheckTypeEnd = (params) => {
	const url = '/api/tdSeekApply/checkTypeEnd';

	return GET(url, params);
};

/**
 *  获取探店模式
 * @param {*} params
 * @returns
 */
export const getTanDianModuel = (params) => {
	const url = '/api/tdSeekApply/seekType';

	return GET(url, params);
};
